﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.franchise.data {
    import Modules.franchise.util.*;

    public class FriendFranchiseData {

        private var m_starRating:Number;
        private var m_franchiseName:String;
        private var m_commodityLeft:Number;

        public function FriendFranchiseData(_arg1:Number, _arg2:String, _arg3:Number){
            this.m_starRating = _arg1;
            this.m_franchiseName = _arg2;
            this.m_commodityLeft = _arg3;
        }
        public static function loadObject(_arg1:Object):FriendFranchiseData{
            var _local3:Number;
            var _local4:Number;
            var _local5:String;
            var _local6:Number;
            var _local2:FriendFranchiseData;
            if (_arg1){
                _local3 = 0;
                _local4 = 0;
                _local5 = null;
                if (_arg1){
                    _local3 = _arg1["star_rating"];
                    _local4 = _arg1["commodity_left"];
                    _local5 = _arg1["franchise_name"];
                };
                _local6 = FranchiseUtil.formatServerStarRating(_local3);
                _local2 = new FriendFranchiseData(_local6, _local5, _local4);
            };
            return (_local2);
        }

        public function get starRating():Number{
            return (this.m_starRating);
        }
        public function get franchiseName():String{
            return (this.m_franchiseName);
        }
        public function get commodityLeft():Number{
            return (this.m_commodityLeft);
        }
        public function set commodityLeft(_arg1:Number):void{
            this.m_commodityLeft = _arg1;
        }

    }
}//package Modules.franchise.data 
